Only disable 'completion-preview-active-mode' when it is on
authorEshel Yaron <me@eshelyaron.com>
Sun, 16 Mar 2025 08:45:25 +0000 (09:45 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 16 Mar 2025 08:45:25 +0000 (09:45 +0100)
commitb6b4a080a3abb5a45b680e26f93dd17adbb75f69
tree3f74449bae626fb5c4513ab08a4b2cff46a133e6
parent91a9d021999d78109b01bad21d3439bc2e2875cd
Only disable 'completion-preview-active-mode' when it is on

* lisp/completion-preview.el
(completion-preview--post-command): Avoid calling
'completion-preview-active-mode' to disable the mode when
already off, since it forces a costly redisplay. (Bug#76964)
lisp/completion-preview.el